<template>
  <view class="content">
    <button type="warn" class="uni-button go" @click="goLogin">点击跳转</button>
  </view>
</template>

<script setup lang="ts">
  import { ref } from 'vue'
  const goLogin = () => {
    uni.redirectTo({
      url: '/pages/login/index',
    })
  }
</script>

<style lang="scss">
  .content {
    .go {
      width: 300rpx;
    }
  }
</style>
